/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * frmMain.java
 *
 * Created on 06 Apr 11, 10:58:59
 */

package toesp.view;
 
import toesp.view.pengguna.frmPengguna;
import toesp.view.matakuliah.frmMatakuliah;
import toesp.view.mhs.frmLaporanMhs;
import toesp.view.mhs.frmMhs;
import toesp.view.jurusan.frmJurusan;
import toesp.view.jurusan.frmLaporanJurusan;
//---------------------------------------------
import java.util.ArrayList;
import java.util.List;
import toesp.bean.GroupmenuBean;
import toesp.bean.MenuBean;
import toesp.entity.Groupmenu;
import toesp.entity.Menu;
import toesp.fn.TabFunction;
import toesp.fn.commonfn;
import toesp.helper.tcomponentHelper;
import toesp.util.joptionPaneUtil;
import toesp.view.group.frmGroup;

/**
 *
 * @author satria.sp
 */
public class frmMain extends javax.swing.JFrame {
    private static commonfn objComfn = new commonfn();
    private static MenuBean DsMenuBean = new MenuBean();
    private static GroupmenuBean DsGrupMenuBean  = new GroupmenuBean();
    private static joptionPaneUtil msgBox = new joptionPaneUtil();
    private TabFunction objTab;
    private tcomponentHelper compHelper = new tcomponentHelper();
    
    /** Creates new form frmMain */
    public frmMain() {
        initComponents();   
        objTab = TabFunction.init(tabPane); 
        setDefaultAuht();
    } 
    
    public static void setDefaultAuht(){
        for (int i = 0; i < menuBar.getMenuCount(); i++) { 
            for (int j = 0; j < menuBar.getMenu(i).getItemCount(); j++) {
                menuBar.getMenu(i).getItem(j).setEnabled(false);  
            }
            menuBar.getMenu(i).setEnabled(false);  
        }
    }
    
    public static void setAuth(int p_intGroupId){  
        try {  
            List<Groupmenu> lstGrupMenu = DsGrupMenuBean.getAllByGroup(p_intGroupId); 
            ArrayList<Menu> lstMenu = new ArrayList<Menu>();
            for (Groupmenu groupmenu : lstGrupMenu) { 
                Menu menu = groupmenu.getMenu();  
                lstMenu.add(menu);
            } 
            
            for (int i = 0; i < menuBar.getMenuCount(); i++) {  
                Menu objMenu = DsMenuBean.getOnebyId(menuBar.getMenu(i).getName());
                if(lstMenu.contains(objMenu)){ 
                    menuBar.getMenu(i).setEnabled(true);
                } 
                for (int j = 0; j < menuBar.getMenu(i).getItemCount(); j++) {
                    Menu objMenuChild = DsMenuBean.getOnebyId(menuBar.getMenu(i).getItem(j).getName());
                    if(lstMenu.contains(objMenuChild)){
                        menuBar.getMenu(i).getItem(j).setEnabled(true);
                    } 
                } 
            }
        } catch (Exception e) {
            msgBox.showDialogInfo(e.getMessage());
        } 
    }
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        tabPane = new javax.swing.JTabbedPane();
        jPanel3 = new javax.swing.JPanel();
        menuBar = new javax.swing.JMenuBar();
        mnuMasterData = new javax.swing.JMenu();
        mnuMDmahasiswa = new javax.swing.JMenuItem();
        mnuMDmatakuliah = new javax.swing.JMenuItem();
        mnuMDtahun = new javax.swing.JMenuItem();
        mnuMDjurusan = new javax.swing.JMenuItem();
        mnuMDgroup = new javax.swing.JMenuItem();
        mnuMDpengguna = new javax.swing.JMenuItem();
        mnuTransaksi = new javax.swing.JMenu();
        mnuMTkesetaraan = new javax.swing.JMenuItem();
        mnuMTpendaftaran = new javax.swing.JMenuItem();
        jMenuItem10 = new javax.swing.JMenuItem();
        mnuMTujiantulis = new javax.swing.JMenuItem();
        mnuMTujianwawancara = new javax.swing.JMenuItem();
        mnuMTgroupmenu = new javax.swing.JMenuItem();
        mnuMTgroupuser = new javax.swing.JMenuItem();
        mnuLaporan = new javax.swing.JMenu();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem2 = new javax.swing.JMenuItem();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenuItem4 = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        jMenuItem5 = new javax.swing.JMenuItem();
        jMenuItem6 = new javax.swing.JMenuItem();
        jMenu4 = new javax.swing.JMenu();
        jMenuItem7 = new javax.swing.JMenuItem();
        jMenuItem8 = new javax.swing.JMenuItem();
        jMenuItem9 = new javax.swing.JMenuItem();
        lapJurusan = new javax.swing.JMenuItem();
        mnuSetting = new javax.swing.JMenu();
        mnuMStha = new javax.swing.JMenuItem();
        mnuPanduan = new javax.swing.JMenu();
        mnuMPmanual = new javax.swing.JMenuItem();
        mnuKeluar = new javax.swing.JMenu();
        mnuMKlogout = new javax.swing.JMenuItem();
        mnuMKkelprog = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowOpened(java.awt.event.WindowEvent evt) {
                formWindowOpened(evt);
            }
        });

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        jLabel1.setBackground(new java.awt.Color(204, 204, 204));
        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/toesp/image/openerp_small.png"))); // NOI18N
        jLabel1.setOpaque(true);

        jLabel2.setBackground(new java.awt.Color(102, 102, 102));
        jLabel2.setOpaque(true);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 660, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 60, Short.MAX_VALUE)
        );

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        tabPane.setName("tabPane"); // NOI18N

        jPanel3.setBackground(new java.awt.Color(102, 102, 102));

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 861, Short.MAX_VALUE)
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 490, Short.MAX_VALUE)
        );

        tabPane.addTab("X", jPanel3);

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(tabPane, javax.swing.GroupLayout.DEFAULT_SIZE, 866, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(tabPane, javax.swing.GroupLayout.DEFAULT_SIZE, 518, Short.MAX_VALUE)
        );

        tabPane.getAccessibleContext().setAccessibleName("X");

        mnuMasterData.setText("Master");
        mnuMasterData.setName("mnuMasterData"); // NOI18N
        mnuMasterData.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuMasterDataActionPerformed(evt);
            }
        });

        mnuMDmahasiswa.setText("Data Mahasiswa");
        mnuMDmahasiswa.setName("mnuMDmahasiswa"); // NOI18N
        mnuMDmahasiswa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuMDmahasiswaActionPerformed(evt);
            }
        });
        mnuMasterData.add(mnuMDmahasiswa);

        mnuMDmatakuliah.setText("Data Matakuliah");
        mnuMDmatakuliah.setName("mnuMDmatakuliah"); // NOI18N
        mnuMDmatakuliah.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuMDmatakuliahActionPerformed(evt);
            }
        });
        mnuMasterData.add(mnuMDmatakuliah);

        mnuMDtahun.setText("Data Tahun Ajaran");
        mnuMDtahun.setName("mnuMDtahun"); // NOI18N
        mnuMDtahun.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuMDtahunActionPerformed(evt);
            }
        });
        mnuMasterData.add(mnuMDtahun);

        mnuMDjurusan.setText("Data Jurusan");
        mnuMDjurusan.setName("mnuMDjurusan"); // NOI18N
        mnuMDjurusan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuMDjurusanActionPerformed(evt);
            }
        });
        mnuMasterData.add(mnuMDjurusan);

        mnuMDgroup.setText("Data Group");
        mnuMDgroup.setName("mnuMDgroup"); // NOI18N
        mnuMDgroup.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuMDgroupActionPerformed(evt);
            }
        });
        mnuMasterData.add(mnuMDgroup);

        mnuMDpengguna.setText("Data Pengguna");
        mnuMDpengguna.setName("mnuMDpengguna"); // NOI18N
        mnuMDpengguna.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuMDpenggunaActionPerformed(evt);
            }
        });
        mnuMasterData.add(mnuMDpengguna);

        menuBar.add(mnuMasterData);

        mnuTransaksi.setText("Transaksi");
        mnuTransaksi.setName("mnuTransaksi"); // NOI18N

        mnuMTkesetaraan.setText("Transaksi Kesetaraan Matakuliah");
        mnuMTkesetaraan.setName("mnuMTkesetaraan"); // NOI18N
        mnuTransaksi.add(mnuMTkesetaraan);

        mnuMTpendaftaran.setText("Transaksi Pendaftaran Asisten");
        mnuMTpendaftaran.setName("mnuMTpendaftaran"); // NOI18N
        mnuTransaksi.add(mnuMTpendaftaran);

        jMenuItem10.setText("Seleksi Dokumen");
        mnuTransaksi.add(jMenuItem10);

        mnuMTujiantulis.setText("Seleksi Ujian Tertulis");
        mnuMTujiantulis.setName("mnuMTujiantulis"); // NOI18N
        mnuTransaksi.add(mnuMTujiantulis);

        mnuMTujianwawancara.setText("Seleksi Ujian Wawancara");
        mnuMTujianwawancara.setName("mnuMTujianwawancara"); // NOI18N
        mnuTransaksi.add(mnuMTujianwawancara);

        mnuMTgroupmenu.setText("Group Menu");
        mnuMTgroupmenu.setName("mnuMTgroupmenu"); // NOI18N
        mnuTransaksi.add(mnuMTgroupmenu);

        mnuMTgroupuser.setText("Group User");
        mnuMTgroupuser.setName("mnuMTgroupuser"); // NOI18N
        mnuTransaksi.add(mnuMTgroupuser);

        menuBar.add(mnuTransaksi);

        mnuLaporan.setText("Laporan");
        mnuLaporan.setName("mnuLaporan"); // NOI18N

        jMenu1.setText("Laporan Mahasiswa");

        jMenuItem2.setText("Per Mahasiswa");
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem2);

        jMenuItem1.setText("Per Matakuliah");
        jMenu1.add(jMenuItem1);

        jMenuItem3.setText("Per Jurusan");
        jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem3ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem3);

        mnuLaporan.add(jMenu1);

        jMenu2.setText("Laporan Matakuliah");

        jMenuItem4.setText("per Jurusan");
        jMenu2.add(jMenuItem4);

        mnuLaporan.add(jMenu2);

        jMenu3.setText("Laporan Pendaftar");

        jMenuItem5.setText("per Matakuliah");
        jMenu3.add(jMenuItem5);

        jMenuItem6.setText("per Jurusan");
        jMenu3.add(jMenuItem6);

        mnuLaporan.add(jMenu3);

        jMenu4.setText("Laporan Seleksi");

        jMenuItem7.setText("Seleksi Tahap 1(Dokumen)");
        jMenu4.add(jMenuItem7);

        jMenuItem8.setText("Seleksi Tahap 2(Ujian Tulis)");
        jMenu4.add(jMenuItem8);

        jMenuItem9.setText("Seleksi Tahap 3(Wawancara)");
        jMenu4.add(jMenuItem9);

        mnuLaporan.add(jMenu4);

        lapJurusan.setText("Laporan Jurusan");
        lapJurusan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                lapJurusanActionPerformed(evt);
            }
        });
        mnuLaporan.add(lapJurusan);

        menuBar.add(mnuLaporan);

        mnuSetting.setText("Setting");
        mnuSetting.setName("mnuSetting"); // NOI18N

        mnuMStha.setText("Tahun Ajaran Aktif");
        mnuMStha.setName("mnuMStha"); // NOI18N
        mnuSetting.add(mnuMStha);

        menuBar.add(mnuSetting);

        mnuPanduan.setText("Panduan");
        mnuPanduan.setName("mnuPanduan"); // NOI18N

        mnuMPmanual.setText("Panduan Program");
        mnuMPmanual.setName("mnuMPmanual"); // NOI18N
        mnuPanduan.add(mnuMPmanual);

        menuBar.add(mnuPanduan);

        mnuKeluar.setText("Keluar");
        mnuKeluar.setName("mnuKeluar"); // NOI18N

        mnuMKlogout.setText("Log out");
        mnuMKlogout.setName("mnuMKlogout"); // NOI18N
        mnuMKlogout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuMKlogoutActionPerformed(evt);
            }
        });
        mnuKeluar.add(mnuMKlogout);

        mnuMKkelprog.setText("Keluar dari Program");
        mnuMKkelprog.setName("mnuMKkelprog"); // NOI18N
        mnuMKkelprog.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuMKkelprogActionPerformed(evt);
            }
        });
        mnuKeluar.add(mnuMKkelprog);

        menuBar.add(mnuKeluar);

        setJMenuBar(menuBar);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened
        // TODO add your handling code here:
        frmLogin flogin = new frmLogin(this, true);
        objComfn.setCenterJDialog(flogin);
        flogin.setVisible(true);
    }//GEN-LAST:event_formWindowOpened

    private void mnuMasterDataActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuMasterDataActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_mnuMasterDataActionPerformed

    private void mnuMKlogoutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuMKlogoutActionPerformed
        // TODO add your handling code here:
        int i = msgBox.msgConfirmQuestion(this, "Apakah anda yakin kembali ke login form ? "); 
        if(i==0){
            setDefaultAuht();
            frmLogin flogin = new frmLogin(this, true);
            objComfn.setCenterJDialog(flogin);
            flogin.setVisible(true);
        } 
    }//GEN-LAST:event_mnuMKlogoutActionPerformed

    private void mnuMKkelprogActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuMKkelprogActionPerformed
        // TODO add your handling code here:
        int i = msgBox.msgConfirmQuestion(this, "Apakah anda yakin keluar dari program ? "); 
        if(i==0){
            System.exit(0);
        }
    }//GEN-LAST:event_mnuMKkelprogActionPerformed

    private void mnuMDpenggunaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuMDpenggunaActionPerformed
        // TODO add your handling code here: 
        frmPengguna  fpg = new frmPengguna();
        fpg.lblTitile.setText("Data Pengguna");
        objTab.ShowIfExist("Data Pengguna", fpg); 
    }//GEN-LAST:event_mnuMDpenggunaActionPerformed

    private void mnuMDmahasiswaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuMDmahasiswaActionPerformed
        // TODO add your handling code here:
        frmMhs  fMhs = new frmMhs();
        fMhs.lblTitile.setText("Data Mahasiswa");
        objTab.ShowIfExist("Data Mahasiswa", fMhs); 
    }//GEN-LAST:event_mnuMDmahasiswaActionPerformed

    private void mnuMDmatakuliahActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuMDmatakuliahActionPerformed
        // TODO add your handling code here: 
        frmMatakuliah  fKul = new frmMatakuliah();
        fKul.lblTitile.setText("Data Matakuliah");
        objTab.ShowIfExist("Data Matakuliah", fKul); 
    }//GEN-LAST:event_mnuMDmatakuliahActionPerformed

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
        // TODO add your handling code here:
        frmLaporanMhs fLapMhs = new frmLaporanMhs(this, false);
        fLapMhs.lblTitile.setText("Laporan per Mahasiswa");
        compHelper.setCenterJDialog(fLapMhs);
        fLapMhs.setVisible(true);
    }//GEN-LAST:event_jMenuItem2ActionPerformed

    private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed
        // TODO add your handling code here:
        frmLaporanMhs fLapMhs = new frmLaporanMhs(this, false);
        fLapMhs.lblTitile.setText("Laporan per Mahasiswa");
        compHelper.setCenterJDialog(fLapMhs);
        fLapMhs.setVisible(true);
    }//GEN-LAST:event_jMenuItem3ActionPerformed

    private void mnuMDjurusanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuMDjurusanActionPerformed
        // TODO add your handling code here:
        frmJurusan fJur = new frmJurusan();
        fJur.lblTitile.setText("Data Jurusan");
        objTab.ShowIfExist("Data Jurusan", fJur); 
    }//GEN-LAST:event_mnuMDjurusanActionPerformed

    private void lapJurusanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_lapJurusanActionPerformed
        // TODO add your handling code here:
        frmLaporanJurusan  fLapJur = new frmLaporanJurusan(this, false);    
        fLapJur.lblTitile.setText("Laporan per Jurusan");
        compHelper.setCenterJDialog(fLapJur);
        fLapJur.setVisible(true);
    }//GEN-LAST:event_lapJurusanActionPerformed

    private void mnuMDtahunActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuMDtahunActionPerformed
        // TODO add your handling code here:
        frmLaporanJurusan  fLapJur = new frmLaporanJurusan(this, false);
        fLapJur.lblTitile.setText("Laporan per Jurusan"); 
        compHelper.setCenterJDialog(fLapJur);
        fLapJur.setVisible(true);
    }//GEN-LAST:event_mnuMDtahunActionPerformed

    private void mnuMDgroupActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuMDgroupActionPerformed
        // TODO add your handling code here:
        frmGroup fGrup = new frmGroup();
        fGrup.lblTitile.setText("Data Group");
        objTab.ShowIfExist("Data Group", fGrup); 
    }//GEN-LAST:event_mnuMDgroupActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                new frmMain().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem10;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem4;
    private javax.swing.JMenuItem jMenuItem5;
    private javax.swing.JMenuItem jMenuItem6;
    private javax.swing.JMenuItem jMenuItem7;
    private javax.swing.JMenuItem jMenuItem8;
    private javax.swing.JMenuItem jMenuItem9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JMenuItem lapJurusan;
    static javax.swing.JMenuBar menuBar;
    private javax.swing.JMenu mnuKeluar;
    private javax.swing.JMenu mnuLaporan;
    private javax.swing.JMenuItem mnuMDgroup;
    private javax.swing.JMenuItem mnuMDjurusan;
    private javax.swing.JMenuItem mnuMDmahasiswa;
    private javax.swing.JMenuItem mnuMDmatakuliah;
    private javax.swing.JMenuItem mnuMDpengguna;
    private javax.swing.JMenuItem mnuMDtahun;
    private javax.swing.JMenuItem mnuMKkelprog;
    private javax.swing.JMenuItem mnuMKlogout;
    private javax.swing.JMenuItem mnuMPmanual;
    private javax.swing.JMenuItem mnuMStha;
    private javax.swing.JMenuItem mnuMTgroupmenu;
    private javax.swing.JMenuItem mnuMTgroupuser;
    private javax.swing.JMenuItem mnuMTkesetaraan;
    private javax.swing.JMenuItem mnuMTpendaftaran;
    private javax.swing.JMenuItem mnuMTujiantulis;
    private javax.swing.JMenuItem mnuMTujianwawancara;
    private javax.swing.JMenu mnuMasterData;
    private javax.swing.JMenu mnuPanduan;
    private javax.swing.JMenu mnuSetting;
    private javax.swing.JMenu mnuTransaksi;
    private javax.swing.JTabbedPane tabPane;
    // End of variables declaration//GEN-END:variables

}
